package utilities;

public class VerificationCarteCredit {
	public boolean validerCC(String noCarte, String crypto) {
		boolean valid = false;
		try {
			Integer.parseInt(noCarte);
			Integer.parseInt(crypto);
			if(noCarte.length() == 16) {
				if(crypto.length() == 3) {
					valid = true;
				}
			}
		} catch (NumberFormatException e) {
			valid = false;
		}
		return valid;
	}
}
